﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using System.Threading.Tasks;

namespace NineMine.DataModel
{
    public class CustomField
    {
        [Key]
        public long Id { get; set; }

        [MaxLength(30)]
        public string FieldType { get; set; }

        [MaxLength(30)]
        public string Name { get; set; }

        [MaxLength(30)]
        public string FieldFormat { get; set; }

        [Column(TypeName = "ntext")]
        public string PossibleValues { get; set; }

        [MaxLength(255)]
        public string RegularExpression { get; set; }

        public long MinLength { get; set; }

        public long MaxLength { get; set; }

        public bool IsRequired { get; set; }

        public bool IsForAll { get; set; }

        public bool IsFilter { get; set; }

        public long Position { get; set; }

        public bool Searchable { get; set; }

        [Column(TypeName = "ntext")]
        public string DefaultValue { get; set; }

        public bool Editable { get; set; }

        public bool Visible { get; set; }

        public bool Multiple { get; set; }
    }
}
